package com.bingxue.edu.management.shop.model.entity;

import com.bingxue.edu.common.enums.ChangeTypeEnum;
import com.bingxue.edu.framework.common.model.BaseEntity;
import com.mybatisflex.annotation.Table;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@Table("shop_sell_record")
public class SellRecord extends BaseEntity {
    @Schema(description = "销售顾问id")
    private String sellerId;

    @Schema(description = "报名id")
    private String enrollmentId;

    @Schema(description = "学生id")
    private String studentId;

    @Schema(description = "班级id")
    private String classId;

    @Schema(description = "校区id")
    private String campusId;

    @Schema(description = "销售业绩")
    private Double performance;

    @Schema(description = "业务类型")
    private ChangeTypeEnum businessType;

    @Schema(description = "业务id")
    private String businessId;

    @Schema(description = "业务时间")
    private LocalDateTime businessTime;

    @Schema(description = "是否有效")
    private Boolean valid;

    @Schema(description = "备注")
    private String remark;
}
